import ar.com.photo_admin.service.security.PhotoAdminUserDetailsService
import ar.com.photo_admin.service.security.FacebookAutenticationProvider
import ar.com.photo_admin.service.security.FacebookAuthenticationProcessingFilter

beans = {
	userDetailsService(PhotoAdminUserDetailsService)
	
	facebookAutenticationProvider(FacebookAutenticationProvider) {
		userDetailsService = ref("userDetailsService")
	}
	
	facebookAuthenticationProcessingFilter(FacebookAuthenticationProcessingFilter) {
		facebookService = ref('facebookService')
		springSecurityService = ref('springSecurityService')
		authenticationManager = ref('authenticationManager')
		sessionAuthenticationStrategy = ref('sessionAuthenticationStrategy')
		authenticationSuccessHandler = ref('authenticationSuccessHandler')
		authenticationFailureHandler = ref('authenticationFailureHandler')
		rememberMeServices = ref('rememberMeServices')
		authenticationDetailsSource = ref('authenticationDetailsSource')
		grailsApplication = ref('grailsApplication')
	}
}
